package com.dzq;

import com.dzq.shiro.controller.Test;
import com.dzq.shiro.model.Module;

import java.util.ArrayList;
import java.util.List;

public class Application {

    public static void main(String[] args) {
        Test test=new Test();
        List<Thread> list=new ArrayList<>();
        Module module=new Module();
        for(module.setMid(0);module.getMid()<10;module.setMid(module.getMid()+1)){
            Thread t1=new Thread(){
                @Override
                public void run() {
                    if(module.getMid()%2==0){
                        test.run();
                    }else{
                        test.run2();
                    }
                }
            };
            list.add(t1);
        }
        for(Thread t:list){
            t.start();
        }
    }





}


